package com.example.study.plus.mybatis_plus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.study.config.JsonResult;
import com.example.study.plus.mybatis_plus.entity.ChatMessages;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 聊天信息表 服务类
 * </p>
 *
 * @author 路飞4
 * @since 2023-08-29
 */
public interface ChatMessagesService extends IService<ChatMessages> {
    int sendAMessage(int sender_id, int receiver_id,String message,boolean pushed);
    int sendAMessage(ChatMessages chatMessages);

    Page<ChatMessages> queryTheListOfMessages(int sender_id, int receiver_id, int page, int pageSize);
}
